package com.qf.commerce.mapper;

import com.qf.commerce.entity.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 */
public interface MessageMapper {
    List<Message> selectMessageList();

    List<Message> selectMessageListByBeans(@Param("message")Message message);

    Message selectMessageByMessageType(@Param("messageType") String messageType);

    Message selectMessageById(@Param("messageId") Long messageId);
    int insertMessage(@Param("message")Message message);

    int updateMessage(@Param("message")Message message);

    int deleteMessageById(@Param("messageId") Long messageId);

    int deleteMessageByIds(@Param("messageIds") List<Long> messageIds);

    int updateMessageToTopRecommend(@Param("messageId") Long messageId);

    int updateMessageToColumnRecommend(@Param("messageId") Long messageId);



}
